package liumengbaio.lolzhangyoubao.Activity.Activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import liumengbaio.lolzhangyoubao.R;

/**
 * Created by lanouhn on 16/9/6.
 */
public class HeroSearchActivity extends AppCompatActivity implements View.OnClickListener{
    private ImageView iv_video;
    private Button btn_return;
    private TextView tv_search;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_herosearch);
        initView();
        initData();
        initEvent();
    }

    private void initView() {
        btn_return= (Button) findViewById(R.id.btn_herosearch_return);
        iv_video= (ImageView) findViewById(R.id.herosearch_voice);
        tv_search= (TextView) findViewById(R.id.herosearch_tv);
        btn_return.setOnClickListener(this);
    }

    private void initData() {
        btn_return.setOnClickListener(this);
        iv_video.setOnClickListener(this);
        tv_search.setOnClickListener(this);

    }
    private void initEvent() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_herosearch_return:
                finish();
            break;
            case R.id.herosearch_voice:
                break;
            case R.id.herosearch_tv:
                break;
        }

    }
}
